package cn.itcast.consumption.feignclient;

import cn.itcast.consumption.pojo.User;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@org.springframework.cloud.openfeign.FeignClient(value = "user-service" , fallback = UserFeignClient.class)
public interface FeignClient {

    @GetMapping("user/user/{id}")
    User findUser(@PathVariable("id") Long id);
}
